﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Sugar.hisEnties
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("EMR_YZB")]
    public partial class EMR_YZB
    {
           public EMR_YZB(){


           }
           /// <summary>
           /// Desc:医嘱本序号
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public decimal YZBXH {get;set;}

           /// <summary>
           /// Desc:病人ID（暂无）
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal BRID {get;set;}

           /// <summary>
           /// Desc:住院号
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal ZYH {get;set;}

           /// <summary>
           /// Desc:婴儿判别（1是0否）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal YEPB {get;set;}

           /// <summary>
           /// Desc:病人科室
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal BRKS {get;set;}

           /// <summary>
           /// Desc:病人病区
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? BRBQ {get;set;}

           /// <summary>
           /// Desc:病人床号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BRCH {get;set;}

           /// <summary>
           /// Desc:约定医嘱类别（关联EMR_YDYZLB）
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal YDYZLB {get;set;}

           /// <summary>
           /// Desc:项目类别（GY_XTPZ.DMLB = 301 ）1 药品 2 诊疗 3 费用 4 材料 5 草药方 6 组套 7 特殊 9 嘱托
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal XMLB {get;set;}

           /// <summary>
           /// Desc:项目ID（兼容YPXH，FYXH，ZLXMID，嘱托ID等）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal XMID {get;set;}

           /// <summary>
           /// Desc:项目单价
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? XMDJ {get;set;}

           /// <summary>
           /// Desc:医嘱组号
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal YZZH {get;set;}

           /// <summary>
           /// Desc:医嘱期效（1 长期医嘱 2 临时医嘱）
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal YZQX {get;set;}

           /// <summary>
           /// Desc:用药属性（1 长期用药 2 临时用药 3 急诊用药 4 出院带药）
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal YYSX {get;set;}

           /// <summary>
           /// Desc:开嘱科室
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal KZKS {get;set;}

           /// <summary>
           /// Desc:开嘱医生
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string KZYS {get;set;}

           /// <summary>
           /// Desc:开嘱时间
           /// Default:
           /// Nullable:False
           /// </summary>           
           public DateTime KZSJ {get;set;}

           /// <summary>
           /// Desc:医嘱名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string YZMC {get;set;}

           /// <summary>
           /// Desc:药品产地
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal YPCD {get;set;}

           /// <summary>
           /// Desc:发药属性（0.正常发药1.发一次药(胰岛素类) 2.不发药（自备药) 3 病区发）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal FYSX {get;set;}

           /// <summary>
           /// Desc:使用频次
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string SYPC {get;set;}

           /// <summary>
           /// Desc:给药途径
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal GYTJ {get;set;}

           /// <summary>
           /// Desc:一次剂量
           /// Default:
           /// Nullable:False
           /// </summary>           
           public decimal YCJL {get;set;}

           /// <summary>
           /// Desc:剂量单位
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string JLDW {get;set;}

           /// <summary>
           /// Desc:总量（通常临嘱使用, 草药长嘱表示贴数）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal ZL {get;set;}

           /// <summary>
           /// Desc:总量单位（通常临嘱使用, 草药长嘱表示贴数）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ZLDW {get;set;}

           /// <summary>
           /// Desc:紧急医嘱（1是 0否）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal JJYZ {get;set;}

           /// <summary>
           /// Desc:补录医嘱（1是 0否）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal BLYZ {get;set;}

           /// <summary>
           /// Desc:停嘱时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? TZSJ {get;set;}

           /// <summary>
           /// Desc:停嘱医生
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string TZYS {get;set;}

           /// <summary>
           /// Desc:医嘱状态（GY_XTPZ .DMLB = 302）0新开、1提交、2疑问、3作废、4停嘱、5复核通过）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal YZZT {get;set;}

           /// <summary>
           /// Desc:执行状态（GY_XTPZ .DMLB = 303）0未执行   1已安排（已采集） 2己执行(已接收)  3已报告
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? ZXZT {get;set;}

           /// <summary>
           /// Desc:打印状态（GY_XTPZ .DMLB = 304）0未打印 1开嘱打印 2停嘱打印  
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal KZDY {get;set;}

           /// <summary>
           /// Desc:暂停标志（0正常 1暂停）
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? ZTBZ {get;set;}

           /// <summary>
           /// Desc:新嘱校对工号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string XZJDGH {get;set;}

           /// <summary>
           /// Desc:新嘱校对时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? XZJDSJ {get;set;}

           /// <summary>
           /// Desc:停嘱确认工号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string TZQRGH {get;set;}

           /// <summary>
           /// Desc:停嘱确认时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? TZQRSJ {get;set;}

           /// <summary>
           /// Desc:安排时间（只有预约项目才会置此时间）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? APSJ {get;set;}

           /// <summary>
           /// Desc:用药天数（出院带药使用）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? YYTS {get;set;}

           /// <summary>
           /// Desc:医生嘱托（如术前30分钟，允许加为常用(EMR_CYDY.DYLB=1)）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string YSZT {get;set;}

           /// <summary>
           /// Desc:首日执行次数
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? SRCS {get;set;}

           /// <summary>
           /// Desc:首日执行开始时点
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string SRSD {get;set;}

           /// <summary>
           /// Desc:执行时点（如Q8H，医生可以指明执行时点）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string ZXSD {get;set;}

           /// <summary>
           /// Desc:静滴滴速(用法)
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? DS {get;set;}

           /// <summary>
           /// Desc:滴速单位
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string DSDW {get;set;}

           /// <summary>
           /// Desc:皮试标志（0.否 1.是）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal PSBZ {get;set;}

           /// <summary>
           /// Desc:皮试结果（GY_XTPZ.DMLB=305）0.未知 1.阳性 2.阴性 8.续用
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? PSJG {get;set;}

           /// <summary>
           /// Desc:自负判别（0.公费 1.自费 2.强制转自费）
           /// Default:1
           /// Nullable:False
           /// </summary>           
           public decimal ZFPB {get;set;}

           /// <summary>
           /// Desc:医保类型（GY_XTPZ.DMLB=306）0.未知 1.甲类 2.乙类 3.丙类
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal YBLX {get;set;}

           /// <summary>
           /// Desc:审批编号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string SPBH {get;set;}

           /// <summary>
           /// Desc:草药煎法（GY_DMZD.DMLB = 128 如：水煎）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CYJF {get;set;}

           /// <summary>
           /// Desc:组内顺序
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal PLSX {get;set;}

           /// <summary>
           /// Desc:重整标志（1是 0否）
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public decimal CZBZ {get;set;}

           /// <summary>
           /// Desc:备注
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BZXX {get;set;}

           /// <summary>
           /// Desc:申请单号（与检验、检验、手术、会诊、转科关联）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string SQDH {get;set;}

           /// <summary>
           /// Desc:执行科室
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? ZXKS {get;set;}

           /// <summary>
           /// Desc:药房规格（>=HRP4.3）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string YFGG {get;set;}

           /// <summary>
           /// Desc:药房单位（>=HRP4.3）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string YFDW {get;set;}

           /// <summary>
           /// Desc:药房包装（>=HRP4.3）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? YFBZ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? YQSY {get;set;}

           /// <summary>
           /// Desc:预防用药（抗菌）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? YFYY {get;set;}

           /// <summary>
           /// Desc:预防用药原因（抗菌）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string YFYYYY {get;set;}

           /// <summary>
           /// Desc:是否送检（抗菌）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? SFSJ {get;set;}

           /// <summary>
           /// Desc:分支路径 FZLJ  >0  表示通过分支路径引用医嘱
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? FZLJ {get;set;}

           /// <summary>
           /// Desc:1：原液 2：皮试液
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? YYPS {get;set;}

           /// <summary>
           /// Desc:未授权是否允许继续（1：允许 0：不允许）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? QXKZ {get;set;}

           /// <summary>
           /// Desc:医疗权限名称（如一级精神药、非限制级抗菌药）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string QXMC {get;set;}

           /// <summary>
           /// Desc:医嘱排列组号（主要解决之前提交复核的医嘱不能重新排序问题）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? YZPLZH {get;set;}

           /// <summary>
           /// Desc:药品连续使用天数（用于MQMS超疗程用药提示）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? LCTS {get;set;}

           /// <summary>
           /// Desc:整量发药 ZLFY
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? ZLFY {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? ZLXZ {get;set;}

           /// <summary>
           /// Desc:NULL或者0: 普通医嘱   9.医技科室处理医嘱功能 (V4.7增加)  10.他科治疗医嘱(V4.7增加)
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? YZLX {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? SQMYZ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string SQMHS {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? SQMSJ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:1
           /// Nullable:False
           /// </summary>           
           public decimal JGID {get;set;}

           /// <summary>
           /// Desc:合理用药返回结果 返回值小于0：表示可能出现异常，或者医嘱的一些错误信息：取值可能如下： -1-该药品在PASS中不存在或未配对。 -2-该药品由于参数设置监测结果被过滤掉了。 -3-医嘱已停嘱，不进行监测。 -4-医嘱已作废，不进行监测。 	-5-系统设置出院带药不进行监测。 	-9-无开始和结束时间。 	返回值大于或等于0：严重程度，取值可能为以下： 	0-正常监测，无监测结果，蓝灯。 1-正常监测，结果为禁忌或严重，黑灯。 	2-正常监测，结果为不推荐，红灯。 	3-正常监测，结果为慎用，橙灯。 	4-正常监测，结果为关注，黄灯。
           /// Default:-1
           /// Nullable:True
           /// </summary>           
           public decimal? NWARN {get;set;}

           /// <summary>
           /// Desc:合理用药用
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string PASSINDEX {get;set;}

           /// <summary>
           /// Desc:抗菌药物判断是否手术预防用，1.普通用药; 2.手术用药
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? SSYZ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? SMYZXH {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? HSZXSJ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string HSZXGH {get;set;}

           /// <summary>
           /// Desc:
           /// Default:0
           /// Nullable:True
           /// </summary>           
           public decimal? gwypbz {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string HSZXGH2 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string FXYZ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string FXSL {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string FXDH {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? YSXSJ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string FXSQ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? JCZT {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string YSYZMC {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string TZHDGH {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? YBZFBZ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? PASSSHSJ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string PASSSHGH {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? YSKZSJ {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string YBBM {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? CYZJ {get;set;}

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? XGSJ { get; set; }

    }
}
